package com.liujun.spring4.demo.aop.pointcut.flowpointcut;

/**
 * 用于进行waiter的方法的调用
 *
 * @author liujun
 * @version 0.0.1
 * @date 2018/09/27
 */
public class WaiterDelegate {

  private Waiter waiter;

  /**
   * 以此方法为流程的切点，所有经过此方法的，都使用AOP切面进行增强
   *
   * @param client
   */
  public void server(String client) {
    waiter.greetTo(client);

    System.out.println("------------------->");

    waiter.servTo(client);
  }

  public void setWaiter(Waiter waiter) {
    this.waiter = waiter;
  }
}
